package io;

public interface JdbConstant {

    String JDB_MAGIC_FLAG = "JODIS";
    String JDB_VERSION = "0001";

    byte EOF = 22;

    byte JDB_TYPE_STRING = 0;
    byte JDB_TYPE_LIST = 1;
    byte JDB_TYPE_HASH = 2;
    byte JDB_TYPE_SET = 3;
    byte JDB_TYPE_ZSET = 4;

    int JDB_TYPE_SIZE = 1;

    int JDB_INT_SIZE = 4; //表示整个key-value写入到文件中的总长度

}
